From: Keir Fraser Date: Thu, 14 Jan 2010 09:42:06 +0000 (+0000) Subject: libxenlight: add error in disk_add if phystype is not recognized X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12742 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9ff53e8d1a25540885f5e0e10517abe7f7d559b3;p=xen.git libxenlight: add error in disk_add if phystype is not recognized Signed-off-by: Vincent Hanquez --- diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index ede485b111..909bd173f0 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1162,6 +1162,9 @@ int libxl_device_disk_add(struct libxl_ctx *ctx, uint32_t domid, libxl_device_di device.backend_kind = DEVICE_TAP; break; + default: + XL_LOG(ctx, XL_LOG_ERROR, "unrecognized disk physical type: %d\n", disk->phystype); + return ERROR_INVAL; } flexarray_set(back, boffset++, "frontend-id");